package com.pys.beans;

import java.io.Serializable;
import java.util.List;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.ViewScoped;

import com.pys.pojo.PysTalep;
import com.pys.service.TalepService;
import com.pys.utils.FacesUtils;

@ManagedBean
@ViewScoped
public class TaleplerimBean implements Serializable {
	private List<PysTalep> list;
	private TalepService talepService;

	public TaleplerimBean() {
		talepService = new TalepService();
		list = talepService.getByKullanici(FacesUtils.getUserSession()
				.getCurrentUser());
	}

	public List<PysTalep> getList() {
		return list;
	}

	public void setList(List<PysTalep> list) {
		this.list = list;
	}
}
